package com.acme.exceptions;

public class ClientExistsException extends Exception {
	private String message;
	private String name;
	
	public ClientExistsException(String clientName, int bankID) {
		this.name = clientName;
		this.message = "Client " + clientName + " already exists in bank #" + bankID + "!";
	}
	
	public ClientExistsException(String clientName) {
		this.name = clientName;
		this.message = "Client " + clientName + " already exists in bank!";
	}
	
	public String getMessage() {
		return this.message;
	}
	
	public String toString() {
		return "ClientExistsException: " + this.getMessage();
	}
}
